﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QianBuo.Lottery.Web.Models.User.SubWinMoneyMarginModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    设置[我与<%=Model.UserName %>]奖金/返点差
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <fieldset class="fieldset">
        <legend>设置[我与<%=Model.UserName %>]奖金/返点差</legend>
        <% Html.BeginForm(); %>
        <%=Html.ActionLink(">>返回", "PlayTypeOption", new { uid = Model.ID, ReturnUrl = Request["ReturnUrl"] }, new { @class = "a_blue" })%>
        <table width="100%" class="table">
            <% if (!ViewData.ModelState.IsValid) %>
            <%{ %>
            <tr>
                <td colspan="3">
                    <%=Html.ValidationMessage("Error") %>
                </td>
            </tr>
            <%} %>
            <tr>
                <td colspan="3">
                    此操作将重置该用户的奖金或返点，间接下级也将有所应响。
                </td>
            </tr>
            <tr>
                <td align="left">
                    <label for="Lottery">请选择彩种：</label>
                    <%=Html.DropDownListFor(p=>p.Lottery,Model.Lotters) %>
                    <%=Html.ValidationMessageFor(p=>p.Lottery) %>
                </td>
                <td align="left">
                    <label for="WinModelID">请选择模式：</label>
                    <%=Html.DropDownListFor(p=>p.WinModelID,Model.WinModels) %>
                    <%=Html.ValidationMessageFor(p=>p.WinModelID) %>
                </td>
                <td rowspan="2">
                    <input type="submit" value="设置" onclick="return confirm('确定提交吗？')" />
                </td>
            </tr>
            <tr>
                <td align="left">
                    <label for="WinMoneyRatio">奖金(比率)：</label>
                    <%=Html.TextBoxFor(p => p.WinMoneyRatio, new { @class="text100"})%>奖金乘以该比率得出奖金差，默认:不调整
                    <%=Html.ValidationMessageFor(p=>p.WinMoneyRatio) %>
                </td>
                <td align="left">
                    <label for="Ratio">返点(差值)：</label>
                    <%=Html.TextBoxFor(p => p.BackMoneyRatioMargin, new { @class="text100"})%>默认:不调整
                    <%=Html.ValidationMessageFor(p => p.BackMoneyRatioMargin)%>
                </td>
            </tr>
        </table>
        <%=Html.HiddenFor(p=>p.UserName) %>
        <% Html.EndForm(); %>
    </fieldset>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="StyleAndScript" runat="server">
</asp:Content>
